import { get, post } from '@/utils/requst.js'
import { getAuthorization, setAuthorization } from "@/utils/auth.js"

// 获取用户信息
export const UserInfo = '/app/api/G/user-heibai/v1/UserInfo/'

// 获取用户图片
export const UserPhoto = '/app/api/G/user-heibai/v1/UserPhoto?PageIndex=1&userID=151743&PageSize=6'

// 获取一张照片
export const OnePhotos = '/app/api/G/user-heibai/v1/UserPhoto'

// 获取用户钱包
export const UserPrices = '/app/api/G/user-heibai/v1/PricePlan/Prices'

// 获取支付订单
export const PayCurOrder = '/app/api/G/user-heibai/v1/Pay/Order'
/**
 *"payPage": "我的钱包",
  "priceID": 0,
  "userID": 0,
  "orderDesc": "string",
  "payWay": 0,
  "paySource": 0,
  "treadType": 0,
  "orderType": 0,
  "itemType": 0,
  "num": 0
 */

// 获取账单明细
// ?billState=0&PageIndex=1&PageSize=20&billType=0
export const GroupBill = '/app/api/G/user-heibai/v1/UserBill/groupBill' // 0 1 2

// 修改密码
export const UpdatePWD = () => {
   let userInfoId = getAuthorization('userId')
   let url = '/app/api/G/user-heibai/v1/UserLogin/' + userInfoId + '/PWD'
   return url
}
// 忘记密码验证码
export const VerifyCode = '/app/api/G/sdk-heibai/v1/SMS/VerifyCode/15123252233?codeType=2'

// 修改绑定手机号验证码校验
export const UpdateMobileCode = '/app/api/G/user-heibai/v1/UserInfo/SMS/VerifyCode/Check'

// 修改绑定手机号
export const UpdateBindMobile = '/app/api/G/user-heibai/v1/UserInfo/SMS/VerifyCode'

// 修改手机号
export const UpdateMobile = () => {
   let userInfoId = getAuthorization('userId')
   let url = '/app/api/G/user-heibai/v1/UserInfo/' + userInfoId + '/Phone'
   return url
}

// 用户黑名单
export const NoDisplayUser = '/app/api/G/user-heibai/v1/NoDisplayUser'

// 删除黑名单
export const NoDisplayUserDel = (id) => {
   return '/app/api/G/user-heibai/v1/NoDisplayUser/' + id + '?NoType=0'
}

// 拉黑
export const setNoDisplayUser = (id) => {
   return '/app/api/G/user-heibai/v1/NoDisplayUser/' + id + '?text=&noType=0'
}

// 第一次设置新密码
export const SetNetPwd = '/app/api/G/user-heibai/v1/UserLogin/151743/PWD-SMS'
// {
//   "codeKey": "string",
//   "codeValue": "string",
//   "phone": "string",
//   "newPassword": "string"
// }

// 修改密码
export const UpdatePwd = "/app/api/G/user-heibai/v1/UserLogin/151743/PWD"
/**
 *  "oldPassword": "string",
    "newPassword": "string"
 */

// 谁看过我
// export const VisitorUsers = "/app/api/G/user-heibai/v1/CurrentUser/VisitorUsers?PageIndex=1&PageSize=20"

// // 我看过谁
// export const UserVisitors = "/app/api/G/user-heibai/v1/CurrentUser/UserVisitors?PageIndex=1&PageSize=20"

// 获取个人字段修改次数
export const UserInfoUpdate = "/app/api/G/user-heibai/v1/UserInfoUpdate?fieldName=ShowName"

// 获取实名认证状态
export const UserRealAuth = '/app/api/G/user-heibai/v1/UserRealAuth/AuthState'

// 获取开通会员列表数据
export const VipPricesList = '/app/api/G/vip-heibai/v1/VipType/Default/VipPricePlan/Default/VipPrices'

// 查看会员权限
export const vipAuth = '/app/api/G/vip-heibai/v1/Type/Default/Power/'

// 获取支付通道
export const payChannel = '/app/api/G/vip-heibai/v1/User/Pay'

// 获取钱包充值的数据
export const walletPrices = '/app/api/G/user-heibai/v1/PricePlan/Prices'

// 获取所有话题
export const TopicHot = "/app/api/G/user-heibai/v1/Topic/Hot"

// 获取个人动态
export const userTrend = (userId) => {
   let userInfoId = userId ? userId : getAuthorization('userId')
   let url = '/app/api/G/user-heibai/v1/' + userInfoId + '/Trend'
   return url
}

// 获取个人标签
// /app/api/G/user-heibai/v1/UserTag/group/Tag
// userId=151707 
export const UserTag = "/app/api/G/user-heibai/v1/UserTag/group/Tag"

// 解锁动态发布
export const TrendUnLock = '/app/api/G/user-heibai/v1/Trend/UnLock'

// 发布动态 {"locationText":"武汉市","UserID":151707,"TrendType":1,"fileIDs":[210542],"longitude":114.317873,"displayState":0,"topicIDs":[1],"text":"11111122222","latitude":30.548094,"CommentState":1}
export const SendTrend = '/app/api/G/user-heibai/v1/Trend'

// 获取用户
export const TrendUser = '/app/api/G/user-heibai/v1/Trend/'

// 取消关注
export const unFollowUser = '/app/api/G/user-heibai/v1/CurrentUser/FollowUser/'

// 获取关注我的人
export const FollowUsers = '/app/api/G/user-heibai/v1/CurrentUser/FollowUsers'

// 获取与我互相关注的人
export const FollowYouAndMe = '/app/api/G/user-heibai/v1/CurrentUser/FollowUsers/YouAndMe'

// 获取我关注的人
export const UserFollows = '/app/api/G/user-heibai/v1/CurrentUser/UserFollows'

// 获取访客 谁看过我
export const VisitorUsers = '/app/api/G/user-heibai/v1/CurrentUser/VisitorUsers'

// 获取访客 我看过谁
export const UserVisitors = '/app/api/G/user-heibai/v1/CurrentUser/UserVisitors'

// 获取粉丝数量
export const FollowCount = '/app/api/G/user-heibai/v1/Follow/Count'

// 获取设置
export const UserSettings = '/app/api/G/user-heibai/v1/UserSettings'

// 上传照片到相册
export const uploadAlbum = (userId) => {
   let userInfoId = userId ? userId : getAuthorization('userId')
   let url = '/app/api/G/user-heibai/v1/' + userInfoId + '/Album'
   return url
}

// 获取相册
export const UserPhotoList = '/app/api/G/user-heibai/v1/UserPhoto' // ?PageIndex=1&userID=151707&PageSize=20

// 设为普通照片
export const DisplayState = '/app/api/G/user-heibai/v1/UserPhoto/List/DisplayState'

// 进入空间查看
export const LookVisitorUser = '/app/api/G/user-heibai/v1/CurrentUser/VisitorUser'

// 查看会员详情
export const LookUserExpand = '/app/api/G/user-heibai/v1/UserExpand/0'

// 获取聊天解锁金币
export const IMLockNum = '/app/api/G/user-heibai/v1/SysConfig/Value?itemCode=IM_LockNum'

// 聊天金币解锁
export const IMLock = (userId, types) => {
   let url = '/app/api/G/user-heibai/v1/IM/UnLock/' + userId + '?lockType=' + types
   return url
}

// 获取男性动态金币
export const DTLockNum = '/app/api/G/user-heibai/v1/SysConfig/Value?itemCode=DT_LockNum'

// 获取男性微信金币
export const WXLockNum = '/app/api/G/user-heibai/v1/SysConfig/Value?itemCode=WX_LockNum'
 
// 会员查看微信剩余次数
export const TQ_VIPIMNUM = '/app/api/G/user-heibai/v1/UserExpand?itemName=TQ_VIPIMNUM'

// 送礼物
export const IMGift = '/app/api/G/user-heibai/v1/IM/Gift'
